package cn.alibab.common.model;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

/**
 * @author shiyk
 * @create 2020-06-29 16:39
 */
@NoArgsConstructor
@AllArgsConstructor
@Getter
public enum RCode {
    SUCCESS(200,"操作成功"),
    ERROR(400,"操作失败！"),
    TOKEN_ERROR(4001,"Token认证错误！"),
    TOKEN_INVALID(4002,"Token无效，您无权访问该接口！"),
    USER_NAME_REPEAT(500,"用户名已存在，请重新输入！"),
    NAME_REPEAT(600,"角色名已存在，请重新输入！"),
    USER_NAME_PASSWORD(4003,"用户名或密码错误！"),
    NOT_FOUND(4004,"路径不存在，请检查路径是否正确！"),
    REPEAT_KEY(4005,"数据库中已存在该记录！"),
    AUTHORZITION_ERROR(4006,"没有权限，请联系管理员授权！"),
    STOCK_ERROR(400,"捐献不能大于库存！"),
    STOCK_ISNULL(400,"库存没有物品了！");
    private Integer code;
    private String msg;
}
